const state = {
  token: null
}
const mutations = {
  setToken(state, token) {
    state
  }
}
const actions = {
  login(context, data) {
    // 调用登录接口 接受后端返回token 123456
    context.commit()
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
